package com.woniuxy.base.service;



import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.base.model.entity.BaseMaterial;
import com.woniuxy.base.model.entity.BaseMaterialRecord;

import java.util.List;

public interface BaseMaterialService {

    Page<BaseMaterial> getAll(int current, int size);

    Boolean update(BaseMaterial baseMaterial, String account);

    Boolean add(BaseMaterial baseMaterial);

    Page<BaseMaterial> conditionSearch(BaseMaterial baseMaterial, Integer current, Integer size);

    Page<BaseMaterial> keywordSearch(String keyword, Integer current, Integer size);

    List<BaseMaterialRecord> detail(Integer materialId);

    List<BaseMaterial> baseList();
}
